package com.genesis.mall.service.impl;

import com.genesis.mall.entity.SmsCouponProductCategoryRelation;
import com.genesis.mall.mapper.SmsCouponProductCategoryRelationMapper;
import com.genesis.mall.service.ISmsCouponProductCategoryRelationService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 优惠券和产品分类关系表 服务实现类
 * </p>
 *
 * @author author
 * @since 2022-08-01
 */
@Service
public class SmsCouponProductCategoryRelationServiceImpl extends ServiceImpl<SmsCouponProductCategoryRelationMapper, SmsCouponProductCategoryRelation> implements ISmsCouponProductCategoryRelationService {
    @Autowired
    private SmsCouponProductCategoryRelationMapper couponProductCategoryRelationMapper;
    @Override
    public List<SmsCouponProductCategoryRelation> findByCouponId(Long couponId) {
        return couponProductCategoryRelationMapper.findByCouponId(couponId);
    }
}
